package com.chenglu.android.redpacket.mvp.model;





import com.chenglu.android.bean.SmsCodeBean;
import com.chenglu.android.common.net.RetrofitClientCL;
import com.chenglu.android.mine.bean.CollectBean;
import com.chenglu.android.redpacket.bean.OpenPacketBean;
import com.chenglu.android.redpacket.bean.PacketBean;
import com.chenglu.android.redpacket.mvp.contract.RedPacketContract;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.RequestBody;

/**
 * @author: lyj
 * @Created by Copyright 2023/7/27 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public class RedPacketModel implements RedPacketContract.RedPacketModel {




    @Override
    public Observable<OpenPacketBean> getOpenPacket(String token,String id) {
        return RetrofitClientCL.getInstance().getApi().getOpenPacket(token, id);
    }

    @Override
    public Observable<PacketBean> getPacketList(Map<String, String> map) {
        return RetrofitClientCL.getInstance().getApi().getredPackList(map);
    }

    @Override
    public Observable<PacketBean> getPacketList(String token, Map<String, String> map) {
        return RetrofitClientCL.getInstance().getApi().getredPackList(token, map);
    }


}
